// @ts-check

/** @type {import('postcss-load-config').Config} */
export default {
  plugins: {
    'postcss-import': {},
    'tailwindcss/nesting': {},
    tailwindcss: {},
    autoprefixer: {},
    'postcss-pxtransform': {
      baseFontSize: 50,
      platform: 'h5',
      selectorBlackList: ['body', 'html', '.rem-ignore'],
      designWidth() {
        return 750
      }
    },
    ...(process.env.NODE_ENV === 'production' ? { cssnano: {} } : {})
  }
}
